﻿




<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Best.Framework.Web.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%--

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>系统登录首页</title>
    <script src="http://localhost:12284/js/jquery-1.8.3.js" type="text/javascript"></script>
</head>
<body >

<script type="text/javascript">
    function setCookie(name, value) {
        var Days = 300;
        var exp = new Date();
        exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
        document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
//        var strsec = getsec(time);
//        var exp = new Date();
//        exp.setTime(exp.getTime() + strsec * 1);
//        document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
    }

    //读取cookies
    function getCookie(name) {
        var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");

        if (arr = document.cookie.match(reg))

            return (arr[2]);
        else
            return null;
    }

    //删除cookies
    function delCookie(name) {
        var exp = new Date();
        exp.setTime(exp.getTime() - 1);
        var cval = getCookie(name);
        if (cval != null)
            document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
    }

   
    function fun() {
        var rem_checkbox = document.getElementById('rempwd'); //txtPwd
        var txtpwd = document.getElementById('txtPwd');
        var txtname = document.getElementById('txtUsername');
        if (rem_checkbox.checked) {
            setCookie('sk_pwd', txtpwd.value);
            setCookie('sk_name', txtname.value);
        }
        else {
            delCookie('sk_pwd');
            delCookie('sk_name');
        }
    }

         
    </script>
    <form id="form1" runat="server">
    <div>
            <br />
            <br />
            <br />
            <br />
            <br />
            <table width="620" border="0" align="center" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td width="620">
                            <img alt="login_p_img02" height="11" src="Images/login_p_img02.gif" width="650"/></td>
                    </tr>
                    <tr>
                        <td align="center" background="images/login_p_img03.gif">
                            <br />
                            <table width="570" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <table cellspacing="0" cellpadding="0" width="570" border="0">
                                            <tbody>
                                                <tr>
                                                    <td width="504" height="120" align="center" valign="middle" style="width: 504px">
                                                        <img alt="logo0012" src="Images/logo001.gif"/></td></tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        <img  alt="a_te01" src="images/a_te01.gif" width="570" height="3"/></td>
                                </tr>
                                <tr>
                                    <td align="center" background="images/a_te02.gif">
                                        <table width="520" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td width="123" height="120">
                                                    <img alt="login_p_img05" height="95" src="Images/login_p_img05.gif" width="123" border="0"/></td>
                                                <td align="center">
                                                    <table cellspacing="0" cellpadding="0" border="0" style=" font-size:18px">
                                                        <tbody>
                                                            <tr>
                                                                <td width="220" height="30" valign="top">
                                                                    用户名：
                                                                    <input class="nemo01" value="" tabindex="1" maxlength="22" size="17" name="user" id="txtUsername"
                                                                        runat="server" style="width: 136px; height: 19px;" />
                                                                </td>
                                                                <td width="80" rowspan="2" align="right" valign="middle">
                                                                    <asp:ImageButton ID="btnLogin" runat="server" ImageUrl="images/login_p_img11.gif"
                                                                        OnClick="btnLogin_Click"></asp:ImageButton><a href="#"></a>
                                                                        <br />
                                                                        <span style=" font-size:12px">记住密码 </span><input id="rempwd" type="checkbox"  />
                                                                        
                                                                        </td>
                                                            </tr>
                                                            <tr>
                                                                <td valign="bottom" height="30">
                                                                    密&nbsp;&nbsp;&nbsp; 码：
                                                                    <input name="user" type="password" class="nemo01" tabindex="1" size="17" maxlength="22"
                                                                        id="txtPwd" runat="server" style="width: 136px; height: 19px"/>
                                                                </td>
                                                            </tr>
                                                           
                                                        </tbody>
                                                    </table>
                                                    <asp:Label ID="lblMsg" runat="server" BackColor="Transparent"></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td bgcolor="#d5d5d5">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td height="70" align="center">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img alt="login_p_img04" height="11" src="images/login_p_img04.gif" width="650"/></td>
                    </tr>
                </tbody>
            </table>
            <br />
        </div>
    </form>

     <script type="text/javascript">

         var login_btn = document.getElementById('<%=btnLogin.ClientID%>');

         login_btn.onclick = fun;

         var pwd = getCookie("sk_pwd");
         var name = getCookie("sk_name")

         if (pwd != null&&name!=null) {
             document.getElementById("txtPwd").value = pwd;
             document.getElementById("txtUsername").value = name;
             document.getElementById("rempwd").checked = true;
         }

         
     </script>


   

</body>
</html>
--%>






<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title> 射孔作业施工方案设计平台-登陆</title>
    <link href="Common/CSS/skins/main.css" rel="stylesheet" type="text/css" />
    <script src="easyui/jquery-1.8.0.min.js" type="text/javascript"></script>
   <%-- <link href="weblib/skins/main.css" rel="stylesheet" type="text/css" />--%>
<%--    <script type="text/javascript" src="weblib/jquery/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="weblib/jquery/jquery.adaptor.js"></script>
	<script type="text/javascript" src="webjs/core/config.js"></script>
    <script src="weblib/jshelper/md5.js" type="text/javascript"></script>
	<script type="text/javascript" src="webjs/login/login.js"></script>
    <script src="webjs/core/common.js" type="text/javascript"></script>--%>


    <script type="text/javascript">

        jQuery.cookie = function (key, value, options) {

            // key and value given, set cookie...
            if (arguments.length > 1 && (value === null || typeof value !== "object")) {
                options = jQuery.extend({}, options);

                if (value === null) {
                    options.expires = -1;
                }

                if (typeof options.expires === 'number') {
                    var days = options.expires, t = options.expires = new Date();
                    t.setDate(t.getDate() + days);
                }

                return (document.cookie = [
            encodeURIComponent(key), '=',
            options.raw ? String(value) : encodeURIComponent(String(value)),
            options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
            options.path ? '; path=' + options.path : '',
            options.domain ? '; domain=' + options.domain : '',
            options.secure ? '; secure' : ''
        ].join(''));
            }

            // key and possibly options given, get cookie...
            options = value || {};
            var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
            return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
        };


        $(function () {

            if ($.cookie('easyuiThemeName')) {
                $("#themeSel").val($.cookie('easyuiThemeName'));
            }


            $("#themeSel").change(function () {

                themeName = $("#themeSel").val();
                $.cookie('easyuiThemeName', themeName, {
                    expires: 30
                });
            });

        });

    
    </script>

</head>
<body class="bodybg">

<form  runat="server">

<%--  <asp:ImageButton ID="btnLogin" runat="server" ImageUrl="images/login_p_img11.gif"
                                                                        OnClick="btnLogin_Click"></asp:ImageButton><a href="#"></a>

--%>
 <asp:Label ID="lblMsg" runat="server" Visible="false" BackColor="Transparent"></asp:Label>
<%--  <input name="user" type="password" class="nemo01" tabindex="1" size="17" maxlength="22"
                                                                        id="txtPwd" runat="server" style="width: 136px; height: 19px"/>--%>
  <%--<input class="nemo01" value="" tabindex="1" maxlength="22" size="17" name="user" id="txtUsername"
                                                                        runat="server" style="width: 136px; height: 19px;" />--%>
<div>
<div id="login_warp">
    <div id="login_box"><div id="login_body">
        <div id="systitle">射孔作业施工方案设计平台</div>
        <div id="systitleen"> Scheme Design Platform</div>
   
        <div id="frmuserid"><input type="text" id="txtUsername"  runat="server" /></div>
        <div id="frmpassword"><input type="password" id="txtPwd" runat="server" /></div>

        <div title="登陆" id="enterbtn" ><asp:Button ID="btnLogin" runat="server"
                                                                        
                OnClick="btnLogin_Click" Height="35px" Width="80px" style = "background-color: transparent; border: 0;"></asp:Button>   </div>
                <div id="themeSelect">风格：
                    <select style="width: 60%" id="themeSel">
                        <option value="default">default</option>
                        <option value="gray">gray</option>
                        <option value="metro">metro</option>
                        <option value="black">black</option>
                        <option value="bootstrap">bootstrap</option>
                        <option value="metro-blue">metro-blue</option>
                        <option value="metro-gray">metro-gray</option>
                        <option value="metro-green">metro-green</option>
                        <option value="metro-orange">metro-orange</option>
                        <option value="metro-red">metro-red</option>
                    </select>
        </div>
        <div id="copyright">Copyright © 2014   All Rights Reserved.</div>
        </div>
    </div>
</div>
</div>
</form>
</body>
</html>
